package com.richpencil.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Component;

@Component
public class YmlProperties {

    @Autowired
    private Environment env;
    public String get_physical_path(){
        return env.getProperty("ue.local.physical-path");
    }

    public String get_url_prefix(){
        return env.getProperty("ue.local.url-prefix");
    }

    public String getEnv(){
        return env.getProperty("spring.profiles.active");
    }
}
